package com.string;

public class Solution07 {
    public boolean repeatedSubstringPattern(String s) {
        String str = s + s;
        return str.substring(1, str.length()-1).contains(s);
    }
}
